<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of about-us
 *
 * @author QUYET
 */
class about_us extends Frontend_Controller {
//put your code here
    public function __construct() {
        parent::__construct();        
        $this->session->set_userdata('current_url', current_url());
    }
    
    function index(){
        $layout = 'frontend_layout/frontend';
        $view_data = array();
        if(empty($this->cart))$this->load->library('cart');
        $view_data['cart_total'] = $this->cart->total_items();
        $view_data['categories']    = modules::run('ticket/list_ticket_categories');
        $view_data['tags']    = modules::run('ticket/list_ticket_tags');
        
        $this->load->model('news/news_m');
        $about_info = $this->news_m->get_aboutus();
        if(!$about_info) redirect('/');
        $view_data['main_content'] = $this->load->view('about_us',array('aboutus_infos'=>$about_info),true);//modules::run('about_us');
        
        $view_data['title'] = $about_info->meta_title;
        $view_data['keywords'] = $about_info->meta_keyword;
        $view_data['description']= $about_info->meta_description;
        $view_data['slideshows_header'] = $this->ticket_model->get_top10ticket_bestseller();//get10TicketBestSeller;
        $this->load->view($layout, $view_data, FALSE);
    }
}
?>
